package com.fastCms.business.frame.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;

/**
 * @Description 分页基础对象
 * @Param
 * @Return
 * @Date 2019/3/20 下午1:46 lsquan
 */
@Data
@ApiModel(value = "pageParam", description = "分页参数")
public class PageParam<T> {
    @ApiModelProperty(value = "当前页（默认第1页）", example = "1")
    public int pageNum = 1;

    @ApiModelProperty(value = "每页条数（默认10条）", example = "12")
    public int pageSize = 12;

    @ApiModelProperty(value = "请求数据")
    @Valid
    private T queryFields;

    public PageParam() {

    }

    @ApiModelProperty(value = "orderBy", notes = "正序:ASC,逆序：DESC", example = " create_time DESC")
    private String orderBy;


}
